package com.first.teacher.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.first.common.pojo.EduTeacher;
import com.first.common.vo.Result;
import com.first.teacher.service.CheckTeacherService;
import com.first.teacher.vo.TeacherVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: first-project
 * @description:
 * @author: 马英贤
 * @create: 2023-05-27 22:23
 **/
@RestController
@RequestMapping("/core/checkteacher")
@Api(tags = "导师审核类")
public class CheckTeacherController {
    @Autowired
    private CheckTeacherService checkTeacherService;
    @PostMapping("/listTeacher/{current}/{pageSize}")
    @ApiOperation(value = "审核导师查询")
    public Result list(@PathVariable Integer current, @PathVariable Integer pageSize, @RequestBody TeacherVo teacherVo){
        Page<EduTeacher> eduTeacherPage = checkTeacherService.selectAll(current,pageSize,teacherVo);
        return Result.success(eduTeacherPage);
    }
}
